

* {
	margin: 0;
	padding: 0;
}

html,
body {
	height: 100%;
	font-family: 'Microsoft YaHei', '微软雅黑', 'Heiti SC Light','Arial';
}

#container {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Start Screen */

div#start {
	width: 1200px;
	height: 800px;
	background-color: rgba(245, 245, 248, 0.9);
	background-size: cover;
	position: relative;
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-image: url(../images/background1.jpg);

}

#start h1 {
	font-size: 3em;
	margin-bottom: 20px;
}

#start ul {
	list-style: none;
	font-size: 1.5em;
	background-color: rgba(0, 0, 255, 0.3);
	padding: 20px;

}

#start li {

	margin-top: 20px;
}

#start label {
	font-size: 1.4em;
	margin-top: 30px;
	color: rgb(219, 69, 69);
}

#start input#player-name {
	width: 200px;
	padding: 10px;
	font-size: 1.4em;
}

#start button {
	width: 180px;
	font-size: 1.4em;
	padding: 10px;
	margin-top: 30px;
	cursor: pointer;
}

#start button:disabled {
	cursor: not-allowed;
}

#start button:hover:enabled {
	background-color: brown;
	color: white;
}

#start select {
	font-size: 1.4em;
	padding: 10px;
	margin-top: 30px;
	height: 53px;
}

#start p {
	margin-top: 100px;
	background-color: rgba(0, 0, 255, 0.7);
	padding: 10px;
}

/* Battle Space Screen */

div#battle-space {
	width: 1200px;
	height: 800px;
	background-image: url("../images/background1.jpg");
	background-size: cover;
	position: relative;
	overflow: hidden;
	display: none;
}

@keyframes hero-blink {
	10% {
		filter: brightness(0.1);
	}

	50% {
		filter: brightness(0.5);
	}

	100% {
		filter: brightness(0.1);
	}
}

div#hero {
	width: 50px;
	height: 50px;
	background-image: url("../images/hero.png");
	position: absolute;
	left: 575px;
	top: 745px;

}

/* Dashboard */

#info {
	background: rgba(0, 0, 0, 0.3);
	color: #999;
	text-align: center;
	padding: 10px;
	width: 100%;
}

#info ul {
	display: inline-block;
	padding: 2px;
}

#info li {
	list-style: none;
	display: inline-block;
	margin-left: 20px;
	margin-right: 20px;
}

#info span.data{
	color:darkcyan;
	display: inline-block;
	min-width: 2em;
	text-align: right;
}
#life-indicator-text{
	min-width: 3em !important;
}


#info span.data-max{
	display: inline-block;
	color: #999999;
	min-width: 2em;
	text-align: left;
}


/* Game Over Screen */

div#game-over {
	display: none;
	background: rgba(0, 0, 0, 0.5);
	top: 0;
	left:0;
	bottom: 0;
	right: 0;
	position: absolute;
	margin: auto;
	z-index: 10000;
}

div#game-over div {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

div#game-over h1 {
	font-size: 4em;
	color: lightcoral;
	/*text-shadow: 5px;*/
}

div#game-over button {
	padding: 10px;
	margin-top: 30px;
	width: 200px;
	font-size: 1.5em;
	cursor: pointer;
}

div#game-over button:hover {
	background-color: brown;
	color: white;
}

#game-over table {
	/*width: 70%;*/
	color: white;
	font-size: 1.5em;
	margin-top: 20px;
	min-height: 60px;
	background-color: rgba(0, 0, 0, 0.3);
	text-align: center;
	padding: 10px;

}
#game-over table td,
#game-over table th{
	min-width: 200px;
}

tr.highlight {
	color: rgb(243, 51, 51);
}

div.hero-missile {
	width: 10px;
	height: 28px;
	background-image: url("../images/hero-missile.png");
	position: absolute;
}

div.enemy-missile {
	width: 10px;
	height: 28px;
	background-image: url("../images/enemy-missile.png");
	position: absolute;
}

div.enemy {
	width: 50px;
	height: 60px;
	background-image: url("../images/enemy.png");
	background-size: contain;
	position: absolute;
}




@keyframes blink {
	0% {
		filter: saturate(0);
	}

	25% {
		filter: saturate(.25);
	}

	50% {
		filter: saturate(.5);
	}

	75% {
		filter: saturate(1);
	}

	100% {
		filter: saturate(1);
	}

}


@keyframes spin {
	100% {
		transform: rotate(360deg)
	}
}

div.energy-can {
	width: 20px;
	height: 32px;
	background-image: url("../images/energy-can.png");
	background-size: contain;
	position: absolute;
	animation-name: blink;
	animation-iteration-count: infinite;
	animation-duration: 2s;
}

div.ammo-box {
	width: 40px;
	height: 21px;
	background-image: url("../images/ammo-box.png");
	background-size: contain;
	position: absolute;
	animation: spin 3s linear infinite;
}


@keyframes explosion {
	15% {
		background-image: url(../images/frame-01.gif);
	}

	25% {
		background-image: url(../images/frame-02.gif);
	}

	37% {
		background-image: url(../images/frame-03.gif);
	}

	50% {
		background-image: url(../images/frame-04.gif);
	}

	53% {
		background-image: url(../images/frame-05.gif);
	}

	65% {
		background-image: url(../images/frame-06.gif);
	}

	78% {
		background-image: url(../images/frame-07.gif);
	}

	100% {
		background-image: url(../images/frame-08.gif);
	}

}

.explode {
	animation-name: explosion;
	animation-duration: 0.6s;
	width: 80px;
	height: 80px;
	position: absolute;
}





#paused,
#help,
#game-over{
	display: none;
	background: rgba(0, 0, 0, 0.5);
	top: 0;
	left:0;
	bottom: 0;
	right: 0;
	position: absolute;
	margin: auto;
	z-index: 10000;
}

#paused p,
#help div{
	position: absolute;
	left: 50%;
	top: 50%;
	font-size: 5em;
	font-weight: bold;
	color:rgba(245, 245, 248, 0.9);
	transform: translate(-50%,-50%);
	z-index: 1000;
}
#help div{
	font-size: 2em;
	font-weight: 500;
	border: 1px solid aqua;
	padding: 20px;
	background-color: darkslategrey;
}
#help .key{
	display: inline-block;
	min-width: 6em;
	text-align: right;
	color: wheat;
}
#help li{
	list-style: none;
	margin: 15px;
	letter-spacing: 0.15rem;
	color:aqua;
	/*font-family:"Times New Roman";*/
}


/* for displaying values of gains and loss */
@keyframes show-value {
  from{
	  opacity: 0.8;
	  transform: scale(2.5);
  }
	to{
		opacity: 0;
		transform: scale(1.5);
	}
}

.gain{
	position: absolute;
	font-size: 1em;
	color: lightgreen;
	animation: show-value 2s linear;
	z-index: 100000;
}

.loss{
	position: absolute;
	font-size: 1em;
	color: red;
	animation: show-value 2s linear;
}

